package ca.uvic.group2.api;

import ca.uvic.group2.api.exceptions.*;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.io.IOException;
import java.util.ArrayList;

public interface ServerRegistry extends Remote {

    static public String RMI_NAME = "G2ServerRegistry";

    String getTransactionServerHost(long sessionId) throws RemoteException;
    String getQuoteServerHost() throws RemoteException;
    String getDBServerHost() throws RemoteException;
    String getAuditLogHost() throws RemoteException;

    void startStats() throws RemoteException;
    void stopStats() throws RemoteException;
    ArrayList getStats() throws RemoteException;
    void initSystem() throws RemoteException, CommException;
}
